﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="MeusPedidos.aspx.cs" Inherits="WebApplication1.MeusPedidos1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Meus Pedidos<br />
    <br />
    <asp:DataList ID="MyDataList"  RepeatColumns="2" RepeatDirection="Horizontal" runat="server"
        Width="100%" onitemdatabound="MyDataList_ItemDataBound">
        <%-- Create a DataList control template named "ItemTemplate". --%>
        <ItemTemplate>
            <div style="padding: 25,15,15,15; font-size: 10pt; font-family: Verdana">
                <div style="font: 12pt verdana; color: darkred">
                    <i><b>
                        <%# DataBinder.Eval(Container.DataItem, "idPedido")%> </i></b>
                </div>
                <br>
                <b>Status Pagamento: </b>
                <asp:Literal ID="litStatus" runat="server" /><br>
                <b>Valor Pedido: </b>
                R$ <%# DataBinder.Eval(Container.DataItem, "valorPedido")%>,00<br>
                <b>Status Entrega: </b>
                <asp:Literal ID="litStatusEntrega" runat="server" /><br>
                <p>
                    <asp:LinkButton runat="server" ID="XXX" Text="Detalhes" OnClick="XXX_Click" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"idPedido") %>'></asp:LinkButton>
            </div>
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
